package com.fin.quant.instra.mysql.mapper;

import com.fin.quant.instra.mysql.model.TargetTag;
import com.fin.quant.instra.mysql.model.TargetTagExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface TargetTagMapper {
    long countByExample(TargetTagExample example);

    int deleteByExample(TargetTagExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TargetTag record);

    int insertSelective(TargetTag record);

    List<TargetTag> selectByExample(TargetTagExample example);

    TargetTag selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TargetTag record, @Param("example") TargetTagExample example);

    int updateByExample(@Param("record") TargetTag record, @Param("example") TargetTagExample example);

    int updateByPrimaryKeySelective(TargetTag record);

    int updateByPrimaryKey(TargetTag record);

    int deleteByPrimaryKey(@Param("targetType") String targetType, @Param("targetId") Long targetId, @Param("tagId") Long tagId);

    TargetTag selectByPrimaryKey(@Param("targetType") String targetType, @Param("targetId") Long targetId, @Param("tagId") Long tagId);
}